﻿<!-- 该字典用于放置样式资源 -->

<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

	<!-- 默认文本样式 -->
	<Style TargetType="TextBlock" x:Key="DefaultTextStyle">
		<Setter Property="FontFamily" Value="Microsoft YaHei" />
		<Setter Property="FontSize" Value="12" />
	</Style>
	
	<!-- 默认输入框中的文本样式 -->
	<Style TargetType="TextBox" x:Key="DefaultInputTextStyle">
		<Setter Property="FontFamily" Value="Microsoft YaHei" />
		<Setter Property="FontSize" Value="12" />
	</Style>

	<!-- 默认密码框中的文本样式 -->
	<Style TargetType="PasswordBox" x:Key="DefaultPassowrdStyle">
		<Setter Property="FontFamily" Value="Microsoft YaHei" />
		<Setter Property="FontSize" Value="12" />
	</Style>

	<!-- 默认按钮内容样式 -->
	<Style TargetType="Button" x:Key="DefaultButtonStyle">
		<Setter Property="FontFamily" Value="Microsoft YaHei" />
		<Setter Property="FontSize" Value="12" />
	</Style>

	<!-- 默认按钮内容样式 -->
	<Style TargetType="HyperlinkButton" x:Key="DefaultHyperlinkButtonStyle">
		<Setter Property="FontFamily" Value="Microsoft YaHei" />
		<Setter Property="FontSize" Value="12" />
	</Style>

	<!-- 默认标签文本样式 -->
	<Style TargetType="TextBlock" x:Key="DefaultLabelTextStyle" BasedOn="{StaticResource DefaultTextStyle}">
		<Setter Property="FontWeight" Value="Bold" />
	</Style>

	<!-- 带有图标的按钮的样式 -->
	<Style TargetType="Button" x:Key="ImageItemButtonStyle" BasedOn="{StaticResource DefaultButtonStyle}">
		<Setter Property="ContentTemplate">
			<Setter.Value>
				<DataTemplate>
					<Grid Background="Transparent" ToolTipService.ToolTip="{Binding Path=Description}">
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="auto" />
							<ColumnDefinition Width="auto" />
						</Grid.ColumnDefinitions>
						
						<Image Margin="3" Source="{Binding Path=Image}" Width="16" Height="16" Grid.Column="0" />
						<TextBlock Margin="3" Text="{Binding Path=Text}" Grid.Column="1" />
						
					</Grid>
				</DataTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<!-- 标题样式 -->
	<Style TargetType="TextBlock" x:Key="HeaderTextStyle">
		<Setter Property="HorizontalAlignment" Value="Center" />
		<Setter Property="FontFamily" Value="Microsoft YaHei" />
		<Setter Property="FontWeight" Value="Bold" />
		<Setter Property="FontSize" Value="24" />
		<Setter Property="Foreground" Value="CadetBlue" />
		<Setter Property="Padding" Value="6" />
	</Style>
	
</ResourceDictionary>
